package com.example.bili.controller;

import com.example.bili.entity.History;
import com.example.bili.service.HistoryService;
import jakarta.annotation.Resource;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * (History)表控制层
 *
 * @author makejava
 * @since 2025-02-20 15:49:37
 */
@RestController
@RequestMapping("/history")
public class HistoryController {
    /**
     * 服务对象
     */
    @Resource
    private HistoryService historyService;

    @GetMapping("getAllHistory")
    public List<History> getHistory(Integer userId){
        return historyService.getAllHistory(userId);
    }

}

